using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MsdnVideo
{
    public partial class SeleccionSociosForm : PlantillaForm
    {
        public string DNI = string.Empty;
        public SeleccionSociosForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SociosDSTableAdapters.SociosTableAdapter adaptadorSocios = new MsdnVideo.SociosDSTableAdapters.SociosTableAdapter();
            adaptadorSocios.FillByNombre(sociosDS.Socios, string.Format("%{0}%", textBox1.Text));
        }

        private void SeleccionSociosForm_Load(object sender, EventArgs e)
        {
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DNI = sociosDS.Socios[SociosBindingSource.Position].Dni;
            Close();
        }
    }
}